package 抽象工厂.DBFactory;

//语句抽象类
public abstract class Statement {}

//oracle语句类
class OracleStatement extends Statement{
    public OracleStatement(){
        System.out.println("获取到oracle语句类");
    }
}

//mysql语句类
class MySQLStatement extends Statement{
    public MySQLStatement(){
        System.out.println("获取到mysql语句类");
    }
}
